#ifndef SIMSERVER_H
#define SIMSERVER_H

#include <QObject>
#include <QTcpServer>
#include <QTcpSocket>
#include <QList>
#include <QString>

class SimServer : public QObject
{
    Q_OBJECT
public:
    explicit SimServer(QObject *parent = 0);
    int writeData(QString _data);
    ~SimServer();

private:
    QTcpServer* server;
    QTcpSocket* skt;
//    QList<QTcpServer*> list_clients;

signals:
    void newData(QString);
    void newState(bool);

public slots:

private slots:
    void newConnection();
    void disConnect();
    void connectStateChanged(QAbstractSocket::SocketState);
    void readData();
};

#endif // SIMSERVER_H
